package de.fhffm.scs.simulator.driver;
import de.fhffm.scs.simulator.hardware.*;

/**
 * This class represents a  Injections driver and serves a as 
 * commands injector hard ware to inject insulin
 * 
 * @author Zziwa
 * 
 */
public class InjectorDriverImpl implements InjectorDriver {
	
	private InjectorHardware hwInjection;
	
	public InjectorDriverImpl(InjectorHardware hwInjection){
		if(hwInjection== null)
			throw new IllegalArgumentException();
		this.hwInjection=hwInjection;
	}

	
	public void injectinsulin(int units){
		hwInjection.injectInsulin(units);
	}
	
	public InjectorHardware gethwInjection(){
		return hwInjection;
	}

}
